import HomeUI from '../views/Home'

import { connect } from 'react-redux'
import {addAction,upAction,downAction,updateAction,deleteAction} from '../redux/list_action'
function dispatchStateToProps(state){
    return{
        data:state
    }
}
function mapDispatchToProps(dispatch){
    return{
        add:data=>{dispatch(addAction(data))},
        delete:data=>{dispatch(deleteAction(data))},
        upAction:data=>{dispatch(upAction(data))},
        updateAction:data=>{dispatch(updateAction(data))},
        downAction:data=>{dispatch(downAction(data))},
    }
}
export default connect(dispatchStateToProps,mapDispatchToProps)(HomeUI)